package com.zyf.linkList;;

public class test {

	public static void main(String[] args) {
//		int[] arr = new int[] { 1, 2, 58, 8, 2, 9, 5 };
		User user = new User();
		m1(user);
		System.out.println(user.age);
		
	}

	public static void m1(User user) {
		user.age = 20;
	}
}

class User {
	public int age;
	public String name;

	public int getAge() {
		return age;
	}

	public void setAge(int age) {
		this.age = age;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

}